package com.xszx.entity;

public class User {

    private Integer uid;
    private String loginName;  //登录名
    private String password;
    private String name;
    private String phone;
    private Integer rid;
    private Role role;


    public User() {
    }

    public User(Integer uid, String loginName, String password, String name, String phone, Integer rid, Role role) {
        this.uid = uid;
        this.loginName = loginName;
        this.password = password;
        this.name = name;
        this.phone = phone;
        this.rid = rid;
        this.role = role;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", loginName='" + loginName + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", rid=" + rid +
                ", role=" + role +
                '}';
    }
}
